package money;

/**
 * @Author admin
 * @Date 2019/3/22 10:40
 */
public class ChargeFactory  {
    public static Charge getcharge(int a){
        Charge charge;
        if (a==1){
            charge = new Taxi();
        }
        else{
            charge = new Bus();
        }
        return charge;
    }
}
